package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.dto.EnterpriseUserCheckDto
import cn.exrick.xboot.base.service.IEnterpriseUserCheckService
import cn.exrick.xboot.base.vo.EnterpriseUserCheckDetailVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class EnterpriseUserCheckController : IEnterpriseUserController.IEnterpriseUserCheck {

    @Autowired
    private lateinit var iEnterpriseUserCheckService: IEnterpriseUserCheckService


    override fun getCheckEnterpriseList(pageVo: PageVo, status: Int): Result<MutableMap<String, Any?>>? {

        return iEnterpriseUserCheckService.getCheckEnterpriseList(pageVo, status)
    }

    override fun getCheckEnterpriseDetail(id: String): Result<EnterpriseUserCheckDetailVo>? {

        return iEnterpriseUserCheckService.getCheckEnterpriseDetail(id)
    }

    override fun checkEnterpriseUser(enterpriseUserCheckDto: EnterpriseUserCheckDto): Result<Any?>? {

        return iEnterpriseUserCheckService.checkEnterpriseUser(enterpriseUserCheckDto)
    }
}